namespace Apps.Models.RC
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("C##FIS2018.PL_RC_DETAILS")]
    public partial class PL_RC_DETAILS
    {
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
        public PL_RC_DETAILS()
        {
            PUB_SCHEME = new HashSet<PUB_SCHEME>();
        }

        [Key]
        [StringLength(40)]
        public string DETAIL_ID { get; set; }

        [StringLength(40)]
        public string PLAN_ID { get; set; }

        [Required]
        [StringLength(40)]
        public string BATCH_CODE { get; set; }

        public decimal AMOUNT { get; set; }

        public decimal QNET { get; set; }

        public decimal ST { get; set; }

        public DateTime PLAN_DATE { get; set; }

        [Required]
        [StringLength(8)]
        public string BEGIN_TIME { get; set; }

        [Required]
        [StringLength(8)]
        public string END_TIME { get; set; }

        [Required]
        [StringLength(40)]
        public string MATERIEL_ID { get; set; }

        [Required]
        [StringLength(40)]
        public string SUPPLIER_ID { get; set; }

        [StringLength(40)]
        public string MINE_ID { get; set; }

        [StringLength(40)]
        public string TRANSPORT_ID { get; set; }

        [StringLength(500)]
        public string REMARKS { get; set; }

        [StringLength(40)]
        public string CONTRACT_DETAIL_ID { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<PUB_SCHEME> PUB_SCHEME { get; set; }
    }
}
